package cn.jiyun.classes.figen;

import cn.jiyun.classes.pojo.AdchannelVo;
import cn.jiyun.classes.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-student")
public interface StudentFigen {
    @RequestMapping("/student/add")
    AdchannelVo add(@RequestBody Student student);
    @RequestMapping("/student/{id}")
    List<Student> findById(@PathVariable("id")Integer id);
    @RequestMapping("/student/edit/{cid}")
    AdchannelVo delByCid(@PathVariable("cid")Integer cid);
}
